2주 이상된 Cloudflare R2 파일 자동 정리 (Telegram 알림 포함)
중급
이것은DevOps분야의자동화 워크플로우로, 10개의 노드를 포함합니다.주로 S3, Code, Telegram, ScheduleTrigger 등의 노드를 사용하며. 2주 이상된 Cloudflare R2 파일 자동 정리 (Telegram 알림 포함)
사전 요구사항
- •Telegram Bot Token
사용된 노드 (10)
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "651cb210bfbe30e7e5b06f0378c3cb8d15e18849a4b48e0d63ab0d98c4f6e232",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "1d6e7f05-a102-47aa-adf7-a5c99fd6de24",
"name": "S3",
"type": "n8n-nodes-base.s3",
"position": [
-140,
-80
],
"parameters": {
"options": {
"folderKey": "Folder/",
"fetchOwner": false
},
"operation": "getAll",
"returnAll": true,
"bucketName": "bucketName"
},
"credentials": {
"s3": {
"id": "KvkwePsDzvVha9Gs",
"name": "Cloudflare S3 account"
}
},
"notesInFlow": false,
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "bbc59eb2-b927-48ae-9b05-9dde8f8bb076",
"name": "코드",
"type": "n8n-nodes-base.code",
"position": [
140,
-80
],
"parameters": {
"jsCode": "const TWO_WEEKS = 14 * 24 * 60 * 60 * 1000;\nconst now = Date.now();\nconst today = new Date().toISOString().split(\"T\")[0]; // YYYY-MM-DD\n\nconst items = $items(\"S3\", 0); // ดึงไฟล์ทั้งหมดจาก AWS S3 Node\n\nreturn items.filter(item => {\n const lastModified = new Date(item.json.LastModified).getTime();\n const age = now - lastModified;\n return age > TWO_WEEKS;\n // const fileDate = new Date(item.json.LastModified).toISOString().split(\"T\")[0];\n // return fileDate === today;\n});\n\n"
},
"typeVersion": 2
},
{
"id": "0612b8b7-23e1-4ccc-8563-3e2396f67c6d",
"name": "S31",
"type": "n8n-nodes-base.s3",
"position": [
420,
-80
],
"parameters": {
"fileKey": "={{ $json.Key }}",
"options": {},
"operation": "delete",
"bucketName": "bucketName"
},
"credentials": {
"s3": {
"id": "KvkwePsDzvVha9Gs",
"name": "Cloudflare S3 account"
}
},
"executeOnce": false,
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "0864095d-e7eb-47d3-9b21-2103b6f64a01",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
680,
-80
],
"webhookId": "1062fade-271c-4f43-a88b-ae6b18bb0153",
"parameters": {
"text": "=✅ Remove R2 backup complete \n👌*{{ $('Code').item.json.Key }}*",
"chatId": "TELEGRAM_CHAT_ID",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "LZCmAP9hvCTi7vQo",
"name": "Telegram account name"
}
},
"executeOnce": false,
"typeVersion": 1.2
},
{
"id": "808e756e-7a74-4b03-86ac-c915578a7c04",
"name": "일정 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-400,
-80
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1.2
},
{
"id": "86406c94-fa65-446c-aad9-47cd6073e61d",
"name": "메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
-460,
-240
],
"parameters": {
"height": 340,
"content": "## Schedul\nRun from setup schedule time"
},
"typeVersion": 1
},
{
"id": "a8fc923d-623b-4d68-8896-d97411d8be10",
"name": "메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-240
],
"parameters": {
"color": 5,
"width": 220,
"height": 340,
"content": "## R2 Object (S3)\nGet file from Cloudflare R2 Object (S3)"
},
"typeVersion": 1
},
{
"id": "3db54850-3f7c-4638-ae04-4110efeb69d0",
"name": "메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
60,
-240
],
"parameters": {
"color": 6,
"width": 260,
"height": 340,
"content": "## Filter File\nFilter file for remove"
},
"typeVersion": 1
},
{
"id": "8814b537-f0e0-4e18-a1b3-9a43beae7f72",
"name": "메모3",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
-240
],
"parameters": {
"color": 5,
"height": 340,
"content": "## Delete File\nRemove file from cloud"
},
"typeVersion": 1
},
{
"id": "1442dabd-cfb8-4c79-8ff3-c53d6f06009f",
"name": "메모4",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
-240
],
"parameters": {
"color": 5,
"height": 340,
"content": "## Telegram Notify\nNotify remove file success"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"1d6e7f05-a102-47aa-adf7-a5c99fd6de24": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"0612b8b7-23e1-4ccc-8563-3e2396f67c6d": {
"main": [
[
{
"node": "0864095d-e7eb-47d3-9b21-2103b6f64a01",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "0612b8b7-23e1-4ccc-8563-3e2396f67c6d",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "1d6e7f05-a102-47aa-adf7-a5c99fd6de24",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 데브옵스
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
UniFi 컨트롤러: 새 릴리스 시 확인 및 업그레이드
SSH 및 Telegram 알림을 통한 UniFi 컨트롤러 업데이트 자동화
If
Ssh
Code
+
If
Ssh
Code
11 노드Dominic Spatz
데브옵스
고급 n8n 워크플로우와 GitHub 동기화
GitHub를 활용한 지능형 변경 감지 자동화 워크플로우 백업
If
N8n
Set
+
If
N8n
Set
38 노드Maksym Brashenko
데브옵스
n8n 백업 관리자 v3
이메일/Telegram 알림 지원, GitHub 자동화 워크플로우 백업
If
Code
Gmail
+
If
Code
Gmail
21 노드Builds.Cool
데브옵스
자동화 API 가동 시간 모니터링 및 실시간 다운타임 알림
API 가동 시간 모니터링, WhatsApp 알림 및 Google 스프레드시트 관리 포함
If
Code
Wait
+
If
Code
Wait
17 노드Oneclick AI Squad
데브옵스
n8n 워크플로우를 OneDrive에 백업
정리 및 이메일 알림 기능을 포함한 OneDrive에 n8n 워크플로 자동 백업
N8n
Code
Merge
+
N8n
Code
Merge
29 노드Wessel Bulte
데브옵스
n8n 업데이트
Telegram 승인 시스템을 사용한 Docker 컨테이너 업데이트 자동화
If
Set
Ssh
+
If
Set
Ssh
27 노드Jaber Zare
데브옵스